FROM dev.k2data.com.cn:5001/k2data/node-cas-docker:1.0.0-alpha.1

WORKDIR /home/node/app

COPY ./dist /home/node/app/public

ENV PORT=3000

EXPOSE 3000

COPY ./docker-entrypoint.sh /

RUN chmod u+x /docker-entrypoint.sh

ENTRYPOINT ["/docker-entrypoint.sh"]

ARG branch
ARG commit
ARG buildtime
ARG owner
LABEL branch=$branch \
        commit=$commit \
        buildtime=$buildtime \
        owner=$owner
